//package com.muyuan.platform.preparation.util;
//
//import com.muyuan.platform.common.util.CollectionUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.Async;
//import org.springframework.transaction.event.TransactionPhase;
//import org.springframework.transaction.event.TransactionalEventListener;
//import org.springframework.util.CollectionUtils;
//
//import javax.annotation.Resource;
//import java.util.List;
//import java.util.function.UnaryOperator;
//
///**
// * @Author RenPu
// * @Date 2021/12/10 10:55
// * @Version 1.0
// * @Description:
// **/
//
//@Configuration
//public class ExampLeUtils {
//
//
//    @Resource
//    public static ApplicationContext applicationContext;
//
//    public static <T> void addQueryCriteria(T criteria, Object object, UnaryOperator<T> unaryOperator){
//
//        if(object==null){
//            return;
//        }
//        if(List.class.isAssignableFrom(object.getClass())){
//           return;
//        }
//
//        unaryOperator.apply(criteria);
////        Object o = new Object();
////        applicationContext.publishEvent(o);
//
//    }
//
////    @Async
////    @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT)
////    public void createEvent(ActivityCreate event){
////
////    }
//
//
//
//
//
//
//
//}
